package com.roc.service;

import java.util.List;
import java.util.Map;

import com.roc.bean.TblMgmRiskBack;
import com.roc.bean.TblMgmRiskBackLog;
import com.roc.pojo.Operators;
/**
 * 退货保证金管理
 * @author Administrator
 *
 */
public interface MarginAndReturnService {
	/**
	 * 添加退货保证金
	 * @param logingMerchant
	 * @param keyStr
	 * @param deductionsMoney
	 * @return
	 * @throws ServiceException
	 */
	public Map<String,Object> addMargin(Operators logingMerchant,TblMgmRiskBack risk) throws ServiceException;

	/**
	 * 修改退货保证金
	 * @param logingMerchant
	 * @param mchtCd
	 * @param securityAmt
	 * @return
	 * @throws ServiceException
	 */
	public Map<String, Object> updateMargin(Operators logingMerchant,
			String mchtCd, String securityAmt) throws ServiceException;

	/**
	 * 查询退货保证金操作流水
	 * @param null2EmptyTrim
	 * @throws ServiceException
	 */
	public List<TblMgmRiskBackLog> queryMarginDetails(List<Object> params,int startRow, int maxRow) throws ServiceException;
	
	/**
	 * 查询退货保证金操作数量
	 * @param params
	 * @return
	 * @throws ServiceException
	 */
	public int queryMarginDetailsCount(List<Object> params) throws ServiceException;
	
}
